<!DOCTYPE html>
<html lang="en">

<head>
    <title>html5</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1"> </head>

<body>
    <form action="demo-form.php"> 选择你喜欢的颜色:
        <input type="color" name="favcolor">
        <br>
        <input type="submit"> 
    </form>
</body>

</html>